//
//  NSString+Helper.m
//  Local
//
//  Created by 刘铎 on 13-12-16.
//  Copyright (c) 2013年 上海即略网络信息科技有限公司. All rights reserved.
//

#import "NSString+Helper.h"

@implementation NSString (Helper)

- (NSString *)stringByTrimingWhitespace
{
    return [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
}

- (NSUInteger)numberOfLines
{
    return [[self componentsSeparatedByString:@"\n"] count] + 1;
}

@end
